Skip to content

fix(DuckDB): replace cast_batch_to_schema with federation's try_cast_to#653

Merged
sgrebnov merged 1 commit into
spiceai-52from
sgrebnov/0521-duckdb-schema-cast-improve
May 21, 2026
Merged

fix(DuckDB): replace cast_batch_to_schema with federation's try_cast_to#653
sgrebnov merged 1 commit into
spiceai-52from
sgrebnov/0521-duckdb-schema-cast-improve

Conversation

@sgrebnov
Copy link
Copy Markdown
Collaborator

@sgrebnov sgrebnov commented May 21, 2026

Replace cast_batch_to_schema with datafusion_federation::schema_cast::record_convert::try_cast_to, which is more robust and supports handling interval cross-type casts, string->list, string->struct, and other edge cases.

@sgrebnov sgrebnov changed the title fix(DuckDB): replace cast_batch_to_schema with federation's `try_ca… fix(DuckDB): replace cast_batch_to_schema with federation's try_cast_to May 21, 2026
@sgrebnov sgrebnov self-assigned this May 21, 2026
@sgrebnov sgrebnov marked this pull request as ready for review May 21, 2026 13:37
Comment thread core/tests/duckdb/mod.rs
@sgrebnov sgrebnov enabled auto-merge (squash) May 21, 2026 14:19
@sgrebnov sgrebnov merged commit 29f6608 into spiceai-52 May 21, 2026
12 checks passed
@sgrebnov sgrebnov deleted the sgrebnov/0521-duckdb-schema-cast-improve branch May 21, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants